package input

type IndexUserInput struct {
	Id       uint   ` form:"id"  binding:"numeric" `
	Username string ` form:"username"  `
	Age      int    ` form:"age"  binding:"numeric"`
}

type AddUserInput struct {
	Username string ` form:"username" json:"username" binding:"required"`
	Password string ` form:"password" json:"password" binding:"required,min=6"`
	Age      int    ` form:"age" json:"age" binding:"required,numeric"`
}

type UpdateUserInput struct {
	Id       uint
	Username string ` form:"username" json:"username" binding:"required"`
	Password string ` form:"password" json:"password" binding:"required,min=6"`
	Age      int    ` form:"age" json:"age" binding:"required,numeric"`
}

type DeleteUserInput struct {
	Id uint ` uri:"id" binding:"required,numeric,min=1"`
}
